import mongoose from "../index";
const xcxUserSchema = new mongoose.Schema(
    {
        openid: { type: String, required: true, unique: true },
        session_key: { type: String, required: true, unique: true },
        phone: { type: String, required: false },
        avatar: { type: String, required: false },
    },
    {
        versionKey: false,
        timestamps: true,
    }
)
const xcxUserModel = mongoose.model('xcxUser', xcxUserSchema)

export default xcxUserModel